<?php
	$token = $_POST['token'];
	$left = trim($_POST['left']);
	$tid = $_POST['tid'];
	$tName = $_POST['tName'];
	if($tid == 'all' || !$tid || !$tName || !$left || !$token){
		exit('err1');	//parm is error!;
	}


	require '../autoload.php';

	//token验证
	if(!token_v('infoDel',$token)){
		exit('err2');	//token is error;
	}

	$mp = new MyPdo();
	$sql = "delete from translate_info where typeid = ? and lefts = ?";
	$arr = array($tid,$left);
	//var_dump($arr);exit;
	$res = $mp->dml($sql,$arr);
	if(!$res['error']){
		Clear_InfoAll();	//清除全部信息缓存
		echo 'ok';

	}else{
		echo 'err3';
	}

